Skip to content

fix(cors): allow Apple OAuth callback origin - #21

Merged
hollali merged 1 commit into
mainfrom
fix/apple-oauth-cors
Nov 30, 2026
Merged

hollali merged 1 commit into
mainfrom
fix/apple-oauth-cors

Conversation

@hollali

@hollali hollali commented Nov 30, 2026

Copy link
Copy Markdown
Contributor

Apple Sign In uses response_mode=form_post, so the browser POSTs the auth code from https://appleid.apple.com with an Origin header. The global CORS middleware rejected that origin with a 403 before the callback reached the controller. Always trust the Apple OAuth origin so the callback succeeds.

Google/Facebook use GET redirects (no Origin), which is why only Apple was affected.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 30, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-30T09:55:07.377472Z 39c170a PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@hollali
hollali merged commit 7754125 into main Nov 30, 2026
2 checks passed
@hollali
hollali deleted the fix/apple-oauth-cors branch November 30, 2026 09:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant